package com.sise.wangzhan.main;

import com.sise.wangzhan.client.HelloClient;
import feign.Feign;

/**
 * @Classname HelloMain
 * @Description TODO
 * @Date 2020/4/8 21:10
 * @Created by wangzhan
 */
public class HelloMain {
    public static void main(String[] args) {
        HelloClient hello = Feign.builder().target(HelloClient.class, "http://localhost:8080/");

        //通过调用方法sayhello,产生动态代理发出请求，方法的返回就是请求处理后的响应
        System.out.println(hello.sayHello());
    }
}
